package com.Lishuai.Servce.Imp;

import com.Lishuai.Mapper.BookMapper;
import com.Lishuai.Mapper.MangermentMapper;
import com.Lishuai.Pojo.Mangerment;
import com.Lishuai.Servce.MangermentServce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class MangermentServceImp implements MangermentServce {
    @Autowired
    private MangermentMapper mangermentMapper;
    @Autowired
    private BookMapper bookMapper;
    @Override
    public void delete(List<Integer> ids) {
        bookMapper.delete(ids);
    }

    @Override
    public boolean login(Mangerment mangerment) {
        Mangerment login = mangermentMapper.login(mangerment);
        boolean equals = mangerment.getPassword().equals(login.getPassword());
        return equals;

    }

}
